/**
 * 
 */
package metier;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.List;

/**
 * @author xavier
 * 
 */
public class EcrireFichier {
	public static void ecrireFichier(String cheminFichier, List<String> texte) {
		File fichier = new File(cheminFichier);
		FileWriter writer = null;
		try {
			writer = new FileWriter(fichier);
			for (String mot : texte) {
				writer.write(mot+";");
			}
		} catch (IOException ex) {
			ex.printStackTrace();
		} finally {
			if (writer != null) {
				try {
					writer.close();
				} catch (IOException e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
		}
	}
}
